<#assign spring=JspTaglibs["http://www.springframework.org/tags"] />
<#assign form=JspTaglibs["http://www.springframework.org/tags/form"] />

<html>
    <head>
        <title>Create Account</title>
    </head>
    <body>
		    <@form.form modelAttribute="register" action="/create" method="post">
            <fieldset>      
                <legend>Create Account</legend>
                <p>
                    <@form.label for="displayName" path="displayName" cssErrorClass="error">Display Name:</@form.label>
                    <@form.input path="displayName" />
                    <@form.errors path="displayName" cssClass="error" />         
                </p>
                <p> 
                    <@form.label for="username" path="username" cssErrorClass="error">Username:</@form.label>
                    <@form.input path="username" />
                    <@form.errors path="username" cssClass="error" />
                </p>
                <p>
                    <@form.label for="email" path="email" cssErrorClass="error">E-mail:</@form.label>
                    <@form.input path="email" />
                    <@form.errors path="email" cssClass="error" />
                </p>
                <p> 
                    <@form.label for="password" path="password" cssErrorClass="error">Password:</@form.label>
                    <@form.password path="password" />
                    <@form.errors path="password" cssClass="error" />
                </p>
                <p>
                    <input name="reset" type="reset" value="Reset" /> 
                    <input name="submit" type="submit" value="Submit" />
                </p>
            </fieldset>
        </@form.form>
    </body>
</html>
